#pragma once

#include "rclcpp/rclcpp.hpp"
// #include <std_msgs/msg/string.hpp>
// #include <std_msgs/msg/float64.hpp>
// #include <std_msgs/msg/float64_multi_array.hpp>
// #include <iomanip>   // 用于std::setprecision
// #include <algorithm> // 用于std::clamp（如果编译器支持）
#include "Plot/Plot.hpp"

using namespace std;
using namespace rclcpp;
class Plot : public rclcpp::Node
{
public:
    Plot();
    void init()
    {
        plot_ = std::make_shared<plot>(shared_from_this());
    }
    void Timer_Callback_01();

private:
    std::shared_ptr<plot> plot_;
    TimerBase::SharedPtr Timer_01;
    std::vector<double> array_value_{5, 0.0, 4, 5, 2};
};
